﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using BTN04.DTO;
using BTN04.DAO;

namespace BTN04.BUS
{
    public class ChiTietHoaDonBUS
    {
        //ham them chi tiet hoa hoa don
        public int ThemChiTietHoaDon(ChiTietHoaDonDTO cthdDTO)
        {
            ChiTietHoaDonDAO cthdDAO= new ChiTietHoaDonDAO();
            return cthdDAO.ThemChiTietHoaDon(cthdDTO );
        }
        //ham lay chi tiet hoa don theo ma nguoi dung
        public DataTable LayChiTietHoaDonTheoMaNguoiDung(int mand)
        {
            ChiTietHoaDonDAO cthdDAO = new ChiTietHoaDonDAO();
            return cthdDAO.LayChiTietHoaDonTheoMaNguoiDung(mand );
        }
    }
}
